package com.ruoyi.books.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.books.mapper.BooksTheatreBusinessMapper;
import com.ruoyi.books.domain.BooksTheatreBusiness;
import com.ruoyi.books.service.IBooksTheatreBusinessService;

/**
 * 非遗戏剧行当汇总Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-30
 */
@Service
public class BooksTheatreBusinessServiceImpl implements IBooksTheatreBusinessService 
{
    @Autowired
    private BooksTheatreBusinessMapper booksTheatreBusinessMapper;

    /**
     * 查询非遗戏剧行当汇总
     * 
     * @param theatreBusinessId 非遗戏剧行当汇总主键
     * @return 非遗戏剧行当汇总
     */
    @Override
    public BooksTheatreBusiness selectBooksTheatreBusinessByTheatreBusinessId(Long theatreBusinessId)
    {
        return booksTheatreBusinessMapper.selectBooksTheatreBusinessByTheatreBusinessId(theatreBusinessId);
    }

    /**
     * 查询非遗戏剧行当汇总列表
     * 
     * @param booksTheatreBusiness 非遗戏剧行当汇总
     * @return 非遗戏剧行当汇总
     */
    @Override
    public List<BooksTheatreBusiness> selectBooksTheatreBusinessList(BooksTheatreBusiness booksTheatreBusiness)
    {
        return booksTheatreBusinessMapper.selectBooksTheatreBusinessList(booksTheatreBusiness);
    }

    /**
     * 新增非遗戏剧行当汇总
     * 
     * @param booksTheatreBusiness 非遗戏剧行当汇总
     * @return 结果
     */
    @Override
    public int insertBooksTheatreBusiness(BooksTheatreBusiness booksTheatreBusiness)
    {
        return booksTheatreBusinessMapper.insertBooksTheatreBusiness(booksTheatreBusiness);
    }

    /**
     * 修改非遗戏剧行当汇总
     * 
     * @param booksTheatreBusiness 非遗戏剧行当汇总
     * @return 结果
     */
    @Override
    public int updateBooksTheatreBusiness(BooksTheatreBusiness booksTheatreBusiness)
    {
        return booksTheatreBusinessMapper.updateBooksTheatreBusiness(booksTheatreBusiness);
    }

    /**
     * 批量删除非遗戏剧行当汇总
     * 
     * @param theatreBusinessIds 需要删除的非遗戏剧行当汇总主键
     * @return 结果
     */
    @Override
    public int deleteBooksTheatreBusinessByTheatreBusinessIds(Long[] theatreBusinessIds)
    {
        return booksTheatreBusinessMapper.deleteBooksTheatreBusinessByTheatreBusinessIds(theatreBusinessIds);
    }

    /**
     * 删除非遗戏剧行当汇总信息
     * 
     * @param theatreBusinessId 非遗戏剧行当汇总主键
     * @return 结果
     */
    @Override
    public int deleteBooksTheatreBusinessByTheatreBusinessId(Long theatreBusinessId)
    {
        return booksTheatreBusinessMapper.deleteBooksTheatreBusinessByTheatreBusinessId(theatreBusinessId);
    }
}
